<div class="maintop">
    当前位置：<?=$gamename?> - 游戏赔率设置
    <a href="javascript:;" action="<?=$basepath?>_add?gameid=<?=$gameid?>&gamename=<?=$gamename?>" class="mainFrame button icon-plus">添加赔率</a>
    <a href="javascript:;" action="<?=$basepath?>?gameid=<?=$gameid?>&gamename=<?=$gamename?>" class="mainFrame button">刷新</a>
    <? if(ISDEBUG){ ?>
        <a href="javascript:$('.debuginfo').toggle();" class="button">调试信息</a>
    <? } ?>
    <a href="/cache/update?key=<?=$this->redisPrefix['GLAS']?>" class="button" target="ajax" func="loadpage">更新缓存</a>
</div>
<div id="mainbody">
    <table width="100%" class="tablist">
        <tr class="trbg">
            <th>牌型</th>
            <th>牌型编码</th>
            <th>人数</th>
            <th>赢输排序</th>
            <th>赔率</th>
            <th>门票</th>
            <th>抽水</th>
            <th>状态</th>
            <th width="40">操作</th>
        </tr>
        <? foreach($datas as $v){ ?>
            <tr<?=($v['state']?'':' class="delete"')?>>
                <td><?=$v['cardtitle']?></td>
                <td><?=$v['cardtype']?></td>
                <td><?=$v['manymen']?></td>
                <td><?=$v['winsort']?></td>
                <td><?=$v['odds']?></td>
                <td><?=$v['ticket']?></td>
                <td><?=$v['winerprofit']?></td>
                <td><a href="<?=$basepath?>_state?id=<?=$v['id']?>" target="ajax" func="loadpage" class="upbutton state<?=$v['state']?>"><?=$v['state']?'启用':'禁用' ?></a></td>
                <td>
                    <a action="<?=$basepath?>_edit?id=<?=$v['id']?>&gameid=<?=$gameid?>&gamename=<?=$gamename?>" title="编辑" class="mainFrame button icon-edit" href="javascript:;"></a>
                </td>
            </tr>
        <? } ?>
    </table>
    <? require VIEW.'/page.view.php' ?>
</div>
<script type="text/javascript">
    function beforeSearchForm(){

    }
    function searchForm(self, _html, data){
        $("#iframe").html(_html);
    }
    $(document).ready(function(){
        <?php
        if(!empty($searchdata['usergroup'])){
            echo '$("#usergroup option[value='.$searchdata['usergroup'].']").attr("selected", "selected");';
        }
        ?>
    });
</script>